package com.start.demo.commons;

import java.io.Serializable;
import java.util.Map;

public class Result implements Serializable {

	private static final long serialVersionUID = 4988405173156070083L;
	private int code;
	private String message;
	private String value;
	private Map<String, Object> extraInfo;

	public Result(int code, String message, String value) {
		this.code = code;
		this.message = message;
		this.value = value;
	}

	public Result() {

	}

	public static Result getInstant() {
		return new Result();
	}

	public int getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}

	public String getValue() {
		return value;
	}

	public Map<String, Object> getExtraInfo() {
		return extraInfo;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public void setExtraInfo(Map<String, Object> extraInfo) {
		this.extraInfo = extraInfo;
	}

}
